<html>
<head>
    <title><?php echo strip_tags($info); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta content="telephone=no" name="format-detection"/>
    <script src="<?=STATICS?>/js/jquery.min.js"></script>
    <link href="<?=STATICS?>/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?=STATICS?>/css/base.css" rel="stylesheet">
</head>
<body>
<div class="error-con">
    <div class="error-bg tijiao-bg" id="errorHeight">
        <div class="bg-info info-tijiao">
            <div class="tijiao-1"><?php echo $info; ?></div>
            <?php if ($delay > 0) :?>
                <div style="margin-top: 20px;"><a href="javascript:location.href = '<?php echo $url; ?>';" id="returnLink"></a></div>
            <?php endif; ?>
            <div class="info-back">返回<a href="/">首页&gt;</a><span>返回<a href="javascript:window.history.back(-1);">上一页&gt;</a></span></div>
        </div>
    </div>

    <?php $this->load->view(FRONT_FOLDER.'/footer'); ?>
</div>
</body>
<?php if ($delay > 0) :?>
    <script type='text/javascript'>
        <!--
        var secs = <?php echo $delay; ?>; //倒计时的秒数
        for(var i=secs; i>=0; i--)
        {
            window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);
        }
        function doUpdate(num)
        {
            if(num == 0)
            {
                <?php if($url == '-1'):?>
                window.history.back(-1);
                <?php else:?>
                location.href = '<?php echo $url; ?>';
                <?php endif;?>
            }
            else
            {
                document.getElementById('returnLink').innerHTML = num + ' 秒后自动返回，没有跳转请点此。' ;
            }
        }
        //-->
    </script>
<?php endif; ?>
</html>





